<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/public/css/bootstrap.css">
</head>

<body>
  <div class="container">
    <div class="row">
      <div class="col-md">
        <div class="card">
          <div class="card-header">
            新闻
          </div>
          <div class="card-body">
            <ul class="list-group">
              <%
                news.forEach(item => { %>
              <li class="list-group-item">
                <a href="<%=item.url%>"><%=item.title%><span
                    style="float: right;"><%=helper.relative(item.time)%></span></a>
              </li>
              <% })
              %>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>